#pragma once
#include "herebasethread.h"
#include "hereAndroidStateCore.h"
#include "hereBaseShell.h"

typedef enum
{
	DO_SHELL_FAIL = -1,
	DO_SHELL_SUCC = 0,
	DO_SHELL_DEVICE_NOTFOUND = 1,
	DO_SHELL_ACTIVITY_NOTEXIST,
	DO_SHELL_ACTIVITY_SUCC,
	DO_SHELL_INSTALL_SUCC,
	ANDROID_CONNECT_FAIL,
	//ANDROID_CONNECT_SUCC
}DO_SHELL_RESULT;

class hereMsgParaW
{
public:
	int failCD;
};

class hereMsgParaL
{
public:
	char totalmem[64];
	char contact[256];
};

class hereUIShowThread :
	public hereBaseThread
{
public:
	hereUIShowThread(void);
	~hereUIShowThread(void);
	void SetMainWindow(HWND hWnd) { m_hWnd = hWnd; }
	DWORD cusStart();

protected:
	virtual DWORD ThreadMethod();

private:
	HWND m_hWnd;
	hereAndroidStateCore m_hAndroidCore;
	hereBaseShell m_hBaseShell;
	char m_modulePath[MAX_PATH + 1];
	hereMsgParaW m_MsgParamW;
	hereMsgParaL m_MsgParamL;

	DO_SHELL_RESULT startAndroidActivity();
	DO_SHELL_RESULT installAndroidActivity();
	void androidADBInstall();
};
